package com.aliyun.messagemgt.common.constants;

import java.util.HashSet;
import java.util.Set;

/**
 * @Author: Xiaohang Lv
 * @Date: 2019/4/24 18:13
 */
public class ContentTypeConstant {
    public  static final  Set<String> IMAGE_SET = getImage();
    public  static final Set<String> VOICE_SET =getVoice();
    public  static final Set<String> VIDEO_SET = getVideo();
    public  static Set<String> getImage(){
        Set<String> imageSet = new HashSet<>();
        imageSet.add("fax");
        imageSet.add("gif");
        imageSet.add("jpeg");
        imageSet.add("pnetvue");
        imageSet.add("png");
        imageSet.add("tiff");
        imageSet.add("vnd.rn-realpix");
        imageSet.add("vnd.wap.wbmp");
        imageSet.add("x-icon");
        return imageSet;
    }

    public  static Set<String> getVoice(){
        Set<String> voiceSet = new HashSet<>();
        voiceSet.add("aiff");
        voiceSet.add("basic");
        voiceSet.add("mid");
        voiceSet.add("mp1");
        voiceSet.add("mp2");
        voiceSet.add("mp3");
        voiceSet.add("mpegurl");
        voiceSet.add("rn-mpeg");
        voiceSet.add("scpls");
        voiceSet.add("vnd.rn-realaudio");
        voiceSet.add("wav");
        voiceSet.add("x-la-lms");
        voiceSet.add("x-liquid-file");
        voiceSet.add("x-liquid-secure");
        voiceSet.add("x-mei-aac");
        voiceSet.add("x-ms-wax");
        voiceSet.add("x-ms-wma");
        voiceSet.add("x-musicnet-download");
        voiceSet.add("x-musicnet-stream");
        voiceSet.add("x-pn-realaudio");
        voiceSet.add("x-pn-realaudio-plugin");
        return voiceSet;
    }

    public  static Set<String> getVideo(){
        Set<String> voiceSet = new HashSet<>();
        voiceSet.add("mpeg");
        voiceSet.add("mpeg4");
        voiceSet.add("mpg");
        voiceSet.add("vnd.rn-realvideo");
        voiceSet.add("x-ivf");
        voiceSet.add("x-mpeg");
        voiceSet.add("x-mpg");
        voiceSet.add("x-ms-asf");
        voiceSet.add("x-ms-wm");
        voiceSet.add("x-ms-wmv");
        voiceSet.add("x-ms-wmx");
        voiceSet.add("x-ms-wvx");
        voiceSet.add("x-sgi-movie");
        return voiceSet;
    }
}
